package net.lcqf.http.controller;

import io.swagger.annotations.Api;
import io.swagger.annotations.ApiOperation;
import net.lcqf.http.response.CommonResult;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

/**
 * +----------------------------------------------------------------------
 * // | Talk To [ 聊来改善地区金融服务环境，助力企业发展 ]
 * // +----------------------------------------------------------------------
 * // | Copyright (c) 2021-2025 聊来 All rights reserved.
 * // +----------------------------------------------------------------------
 * // | Licensed ( <a href="http://www.apache.org/licenses/LICENSE-2.0">apache</a> )
 * // +----------------------------------------------------------------------
 * // | @Author: 聊来 <18970881148@qq.com>
 * // +----------------------------------------------------------------------
 * // | DateTime: 2025/4/15 11:40
 * // +----------------------------------------------------------------------
 */

@RestController
@RequestMapping("/")
@Api(tags = "默认")
public class IndexController {

    @ApiOperation(value = "分页")
    @GetMapping("index")
    public CommonResult<String> index() {
        return CommonResult.success("开发人生第一款类似王者荣耀的游戏，使用了TCP、UDP(KCP)、WebSocket、Http四种协议");
    }
}
